x86/mm: fix mod_l1_entry() return value when encountering r/o MMIO page
authorJan Beulich <jbeulich@suse.com>
Thu, 21 Jun 2012 09:30:59 +0000 (11:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jun 2012 09:30:59 +0000 (11:30 +0200)
commit70622118ee7bb925205c5d8c1e7bec82fc257351
treed673c281e11a91098fb6f3919f50120c31150f02
parent4b4b16cc6c13a1547197e85b3b11363656f9092b
x86/mm: fix mod_l1_entry() return value when encountering r/o MMIO page

While putting together the workaround announced in
http://lists.xen.org/archives/html/xen-devel/2012-06/msg00709.html, I
found that mod_l1_entry(), upon encountering a set bit in
mmio_ro_ranges, would return 1 instead of 0 (the removal of the write
permission is supposed to be entirely transparent to the caller, even
more so to the calling guest).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c